<?php /* Smarty version Smarty-3.1.8, created on 2019-07-16 19:57:59
         compiled from "/Users/aron/GitRepos/PHPBroShop/broshop/home/views/default/index/index.html" */ ?>
<?php /*%%SmartyHeaderCode:8932917765d2dbbc70c9e68-94498055%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e1b59ce7c2c000af42c79a08a31946eaa496457e' => 
    array (
      0 => '/Users/aron/GitRepos/PHPBroShop/broshop/home/views/default/index/index.html',
      1 => 1450315288,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '8932917765d2dbbc70c9e68-94498055',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'ads' => 0,
    'v' => 0,
    'tjs' => 0,
    'app' => 0,
    'public' => 0,
    'notices' => 0,
    'tuijians' => 0,
    'allcats' => 0,
    'nl' => 0,
    'sl' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5d2dbbc73e37b2_58260707',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5d2dbbc73e37b2_58260707')) {function content_5d2dbbc73e37b2_58260707($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("public/header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


	<!-- content -->

	<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ads']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
	<?php if ($_smarty_tpl->tpl_vars['v']->value['position']==1){?>
	<div class="ad980">
		<?php if (empty($_smarty_tpl->tpl_vars['v']->value['url'])){?>
		<img src="<?php echo thumb($_smarty_tpl->tpl_vars['v']->value['logo'],980,80);?>
" />
		<?php }else{ ?>
			<a href="<?php echo $_smarty_tpl->tpl_vars['v']->value['url'];?>
" target="_blank"><img src="<?php echo thumb($_smarty_tpl->tpl_vars['v']->value['logo'],980,80);?>
" /></a>
		<?php }?>
	</div>
	<?php }?>
	<?php } ?>



	<div class="content">
		<!--特价商品 Start-->
		<div class="tj fl">
			<div class="index_tj_tt" style="border:0;">
				<h3>特价商品</h3>
			</div>
		
			<div class="tj_list">
				<ul class="hotlist index_tj" style="height:421px;border:0px">
					<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['tjs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>

					<li>
						<span class="fl hotimg">
							<a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=product&a=index&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
" target="_blank"><img src="<?php echo $_smarty_tpl->tpl_vars['public']->value;?>
/images/load.gif" data-original="<?php echo thumb($_smarty_tpl->tpl_vars['v']->value['logo'],60,60);?>
" title="<?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
" /></a>
						</span>
						<span class="fl hotname tjname_index">
							<a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=product&a=index&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</a>
							<span class="lh20"><span class="cred num strong">￥</span><span class="num1 cred"><?php echo $_smarty_tpl->tpl_vars['v']->value['money'];?>
</span><s class="num c888">￥ <?php echo $_smarty_tpl->tpl_vars['v']->value['smoney'];?>
</s></span>
						</span>
						<div class="clear"></div>
					</li>
					
					<?php } ?>	

				

				
								
						<div class="clear"></div>
					</li>
							
				</ul>
			</div>
		</div>
 		<!--特价商品 End-->
 	
 		<!--幻灯片 Start -->
		<div class="jdt fl">
			<div id="jdtslide" style="visibility:hidden;">
				<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ads']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
				<?php if ($_smarty_tpl->tpl_vars['v']->value['position']==5){?>
					<a href="<?php echo $_smarty_tpl->tpl_vars['v']->value['url'];?>
"><img src="<?php echo thumb($_smarty_tpl->tpl_vars['v']->value['logo'],533,300,0);?>
" alt="" width="533" height="300" /></a>
				<?php }?>
				<?php } ?>
			
			</div>
		</div>
		<!--幻灯片 end -->
		
		<!--网站公告 Start-->
		<div class="fr action_list">
			<div class="action_tt"><h3>网站公告</h3></div>
				<ul>
					<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['notices']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
					<li><a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=article&a=index&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</a></li>
					<?php } ?>

				
				</ul>
			</div>
			<div class="clear"></div>
		</div>
		<!--网站公告 end-->
		
		<div class="index_main">
			<!--新品推荐 Start-->
			<div class="pro_tuijian">
				<div class="index_fenlei_tt" style="border:0;"><h3>新品推荐</h3></div>
				<div class="tuijian_list">
					<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['tuijians']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
					<div class="prolist_1" >
						<p class="prolist_img"><a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=product&a=index&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
" target="_blank"><img src="<?php echo $_smarty_tpl->tpl_vars['public']->value;?>
/images/load.gif" data-original="<?php echo thumb($_smarty_tpl->tpl_vars['v']->value['logo'],150,150);?>
" title="<?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
" /></a></p>
						
						<p class="prolist_name"><a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=product&a=index&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</a></p>
					
						<p><span class="money1">￥<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['v']->value['money'];?>
<?php $_tmp1=ob_get_clean();?><?php echo $_tmp1;?>
</span> <s class="num c888">￥<?php echo $_smarty_tpl->tpl_vars['v']->value['smoney'];?>
</s></p>
					</div>
					<?php } ?>						

					<div class="clear"></div>
				</div>
			</div>
			<!--新品推荐 end-->


			<!--所有分类 和对应分类热销排行 Start-->

			<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allcats']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
		
			<div class="index_fenlei mat10">
			
				<div class="index_fenlei_tt"><h3 class="fl"><?php echo $_smarty_tpl->tpl_vars['v']->value['catname'];?>
</h3><span class="fr"><a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=product&a=plist&cid=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['v']->value['catname'];?>
" target="_blank">更多>></a></span></div>
				
				<div class="index_prolist">
					<div class="fl prolist_left">
						<?php  $_smarty_tpl->tpl_vars['nl'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['nl']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['v']->value['newlists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['nl']->key => $_smarty_tpl->tpl_vars['nl']->value){
$_smarty_tpl->tpl_vars['nl']->_loop = true;
?>
						<div class="prolist_1">
							<p class="prolist_img"><a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=product&a=index&id=<?php echo $_smarty_tpl->tpl_vars['nl']->value['id'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['nl']->value['name'];?>
" target="_blank"><img src="<?php echo $_smarty_tpl->tpl_vars['public']->value;?>
/images/load.gif" data-original="<?php echo thumb($_smarty_tpl->tpl_vars['nl']->value['logo'],150,150,0);?>
" title="<?php echo $_smarty_tpl->tpl_vars['nl']->value['name'];?>
" /></a></p>
							<p class="prolist_name"><a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=product&a=index&id=<?php echo $_smarty_tpl->tpl_vars['nl']->value['id'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['nl']->value['name'];?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['nl']->value['name'];?>
</a></p>
							<p><span class="money1">￥<?php echo $_smarty_tpl->tpl_vars['nl']->value['money'];?>
</span> <s class="num c888">￥ <?php echo $_smarty_tpl->tpl_vars['nl']->value['smoney'];?>
</s></p>
						</div>	
						<?php } ?>
					
					</div>


				<div class="fr prolist_right">
					<div class="prolist_right_tt"><h3><?php echo $_smarty_tpl->tpl_vars['v']->value['catname'];?>
热销排行</h3></div>
					<ul class="hotlist index_hot" style="height:421px;">
							<?php  $_smarty_tpl->tpl_vars['sl'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sl']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['v']->value['selllists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['sl']->key => $_smarty_tpl->tpl_vars['sl']->value){
$_smarty_tpl->tpl_vars['sl']->_loop = true;
?>
							<li>
								<span class="fl hotimg">
									<a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=product&a=index&id=<?php echo $_smarty_tpl->tpl_vars['sl']->value['id'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['sl']->value['name'];?>
" target="_blank"><img src="<?php echo $_smarty_tpl->tpl_vars['public']->value;?>
/images/load.gif" data-original="<?php echo thumb($_smarty_tpl->tpl_vars['sl']->value['logo'],60,60,0);?>
" title="<?php echo $_smarty_tpl->tpl_vars['sl']->value['name'];?>
" /></a>
								</span>
								
								<span class="fl hotname hotname_index">
									<a href="<?php echo $_smarty_tpl->tpl_vars['app']->value;?>
?m=product&a=index&id=<?php echo $_smarty_tpl->tpl_vars['sl']->value['id'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['sl']->value['name'];?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['sl']->value['name'];?>
</a>
									<span class="lh20">
										<span class="cred num strong">￥</span><span class="num1 cred"><?php echo $_smarty_tpl->tpl_vars['sl']->value['money'];?>
</span>
									</span>
								
								</span>
								
								<div class="clear"></div>
							</li>
							<?php } ?>


						</ul>
					</div>
					<div class="clear"></div>
				</div>
			</div>


			<?php } ?>

			<!--所有分类 和对应分类热销排行 End-->

		</div>

	<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ads']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
	<?php if ($_smarty_tpl->tpl_vars['v']->value['position']==2){?>
	<div class="ad980">
		<?php if (empty($_smarty_tpl->tpl_vars['v']->value['url'])){?>
		<img src="<?php echo thumb($_smarty_tpl->tpl_vars['v']->value['logo'],980,80);?>
" />
		<?php }else{ ?>
			<a href="<?php echo $_smarty_tpl->tpl_vars['v']->value['url'];?>
" target="_blank"><img src="<?php echo thumb($_smarty_tpl->tpl_vars['v']->value['logo'],980,80);?>
" /></a>
		<?php }?>
	</div>
	<?php }?>
	<?php } ?>


		<!-- footer -->
<?php echo $_smarty_tpl->getSubTemplate ("public/footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>



<?php }} ?>